digraph G {
    graph [bgcolor=transparent,
        truecolor=true];
    node_0 [label="3",
        shape=triangle];
    node_1 [label="2",
        shape=triangle];
    node_2 [label="2",
        shape=box];
    node_3 [label="1",
        shape=box];
    node_4 [label="2",
        shape=box];
    node_0 -> node_1;
    node_0 -> node_4;
    node_1 -> node_2;
    node_1 -> node_3;
}